<template>
	<view>
		<u-sticky bgColor="#a3d8f5">
			<view class="mainpadding" :style="{paddingTop:menutop+'rpx'}">
				<view class="flexleft">
					<image src="@/static/image/system/hsz.png" class="hszclass" mode=""></image>
					<view class="xiaobai fonweight" style="font-size: 35rpx;">红十字基金会“孤寡老人大病救助基金”</view>
				</view>
				<view class="margin_top flexbetween">
					<u-icon name="arrow-left" color="#fff" size="24" @click="backpage()"></u-icon>
					<view class="xiaobai fonweight sanshier" style="font-size: 32rpx;">救助案例详情</view>
					<image src="@/static/image/system/list.png" mode="" class="topliclass" @click="toplistfn"></image>
				</view>
			</view>
		</u-sticky>
		<view class="mainpadding4">
			<view class="flexcenter titletext fonweight xiaohei" style="font-size: 35rpx;">{{dataAll.name}}</view>
			<image :src="dataAll.image_text" class="margin_top5" style="width: 100%;" mode="widthFix"></image>
			<view class="margin_top5 titletext xiaohei">
				<u-parse :content="dataAll.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				// #ifdef H5
				menutop: 80,
				// #endif
				// #ifdef MP-WEIXIN
				menutop: 0,
				// #endif	
				listid:"",
				dataAll:{}
			}
		},
		onLoad(options) {
			// #ifdef MP-WEIXIN
			this.menutop = uni.getMenuButtonBoundingClientRect().top * 2
			// #endif
			this.listid = options.id
			this.getDetail()
		},
		methods: {
			getDetail(){
				httpRequest.request('/api/index/jzalDetail', 'GET', {
					id: this.listid
				}).then(res => {
					this.dataAll = res.data
				}).catch(err => {})
			},
		}
	}
</script>

<style>

</style>
